from selenium import webdriver

class BasePage():
    def __init__(self,driver):
        self.driver = driver
        self.base_url = 'http://192.168.1.122'

    def open(self):
        url = self.base_url + self.url
        self.driver.get(url)

    def find_element(self,loc):
        return  self.driver.find_element(*loc)